﻿local options = { 
    name = "GoldMachine",
    handler = GoldMachine,
    type = "group",
    args = {
        cal = {
            type = "execute",
			name = "Calculator",
			desc = "GoldMachine's Calculator",
            func = function() GM.Calculator.Frame:Show(); end,
        },
    },
}

-- GM = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0")
GM = LibStub("AceAddon-3.0"):NewAddon("GoldMachine", "AceConsole-3.0", "AceEvent-3.0")

function GM:OnInitialize()
    -- Called when the addon is loaded
    LibStub("AceConfig-3.0"):RegisterOptionsTable("GoldMachine", options, {"goldmachine", "gg"})
end
